home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 25 / CU Amiga Magazine's Super CD-ROM 25 (1998)(EMAP Images)(GB)(Track 1 of 2)[!][issue 1998-08].iso / CUCD / Programming / GMS / GMSDev / Includes / system / tasks.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-04-27  |  3.4 KB  |  76 lines

  1. #ifndef SYSTEM_TASKS_H
  2. #define SYSTEM_TASKS_H TRUE
  3.  
  4. /*
  5. **  $VER: tasks.h V1.0
  6. **
  7. **  (C) Copyright 1996-1998 DreamWorld Productions.
  8. **      All Rights Reserved.
  9. */
  10.  
  11. #ifndef DPKERNEL_H
  12. #include <dpkernel/dpkernel.h>
  13. #endif
  14.  
  15. /****************************************************************************
  16. ** Task object.
  17. */
  18.  
  19. #define VER_TASK  1
  20. #define TAGS_TASK ((ID_SPCTAGS<<16)|ID_TASK)
  21.  
  22. struct  DPKTask {
  23.   struct Head Head;                  /* 000 [R-] Standard header */
  24.   APTR   UserData;                   /* 012 [RW] Pointer to user data, no restrictions */
  25.   BYTE   *Name;                      /* 016 [RI] Name of the task, if specified */
  26.   struct MasterPrefs  *MasterPrefs;  /* 020 [--] Library preferences */
  27.   struct ScreenPrefs  *ScreenPrefs;  /* 024 [--] Screen preferences */
  28.   struct SoundPrefs   *SoundPrefs;   /* 028 [--] Sound preferences */
  29.   struct BlitterPrefs *BlitterPrefs; /* 032 [--] Blitter preferences */
  30.   APTR   ResourceChain;              /* 036 [--] The resource chain, private */
  31.   LONG   ReqStatus;                  /* 040 [--] Private, used internally */
  32.   LONG   BlitKey;                    /* 044 [--] Resource key */
  33.   LONG   AudioKey;                   /* 048 [--] Resource key */
  34.   APTR   ExecNode;                   /* 052 [--] Task's exec node */
  35.   APTR   DestructStack;              /* 056 [--] Stack to use for DestructCode */
  36.   APTR   DestructCode;               /* 060 [--] Pointer to self destruct code routine */
  37.   BYTE   AlertState;                 /* 064 [--] Private */
  38.   BYTE   Switched;                   /* 065 [--] Set if task is in Switch() */
  39.   WORD   DebugStep;                  /* 066 [--] Debug tree stepping position */
  40.   BYTE   AwakeSig;                   /* 068 [--] Signal for waking this task */
  41.   BYTE   Pad;                        /* 069 [--] Reserved */
  42.   WORD   DPKTable;                   /* 070 [-I] Type of jump table from DPK */
  43.   LONG   TotalData;                  /* 072 [R-] Total data memory in use */
  44.   LONG   TotalVideo;                 /* 076 [R-] Total video memory in use */
  45.   LONG   TotalSound;                 /* 080 [R-] Total sound memory in use */
  46.   LONG   TotalBlit;                  /* 084 [R-] Total blitter memory in use */
  47.   APTR   Code;                       /* 088 [-I] Start of program */
  48.   BYTE   *Preferences;               /* 092 [--] Preferences directory */
  49.   LONG   DPKBase;                    /* 096 [R-] DPKBase */
  50.   BYTE   *Author;                    /* 100 [RI] Who wrote the program */
  51.   BYTE   *Date;                      /* 104 [RI] Date of compilation */
  52.   BYTE   *Copyright;                 /* 108 [RI] Copyright details */
  53.   BYTE   *Short;                     /* 112 [RI] Short description of program */
  54.   WORD   MinVersion;                 /* 116 [-I] Minimum required DPKernel version */
  55.   WORD   MinRevision;                /* 120 [-I] Minimum required DPKernel revision */
  56.   struct GVBase *GVBase;             /* 124 [R-] GVBase */
  57.   BYTE   *Args;                      /* 128 [RI] Pointer to argument string */
  58. };
  59.  
  60. #define TSK_Name        (TAPTR|016)
  61. #define TSK_DPKTable    (TWORD|070)
  62. #define TSK_Code        (TAPTR|088)
  63. #define TSK_Author      (TAPTR|100)
  64. #define TSK_Date        (TAPTR|104)
  65. #define TSK_Copyright   (TAPTR|108)
  66. #define TSK_Short       (TAPTR|112)
  67. #define TSK_DPKVersion  (TWORD|116)
  68. #define TSK_DPKRevision (TWORD|120)
  69. #define TSK_Args        (TAPTR|128)
  70.  
  71. #define CS_OCS 0
  72. #define CS_ECS 1
  73. #define CS_AGA 2
  74.  
  75. #endif /* SYSTEM_TASKS_H */
  76.